package com.jx.lcs.versionInfo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * @author 陈新雷 2015年8月4日下午2:35:30
 *
 */
@Entity
@Table(name = "tb_version_info")
@DynamicInsert
@DynamicUpdate
public class VersionInfo {
	private String id;
	private String os;
	private String appname;
	private String appurl;
	private String version;
	private String appType;
	private String updatestatus;
	private Date recordtime = new Date();

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	public String getId() {
		return id;
	}
	@Column(name = "OS")
	public String getOs() {
		return os;
	}
	@Column(name = "APPNAME")
	public String getAppname() {
		return appname;
	}
	@Column(name = "APPURL")
	public String getAppurl() {
		return appurl;
	}
	@Column(name = "VERSION")
	public String getVersion() {
		return version;
	}
	@Column(name = "UPDATESTATUS")
	public String getUpdatestatus() {
		return updatestatus;
	}
	@Column(name = "RECORDTIME")
	public Date getRecordtime() {
		return recordtime;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public void setAppname(String appname) {
		this.appname = appname;
	}

	public void setAppurl(String appurl) {
		this.appurl = appurl;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public void setUpdatestatus(String updatestatus) {
		this.updatestatus = updatestatus;
	}

	public void setRecordtime(Date recordtime) {
		this.recordtime = recordtime;
	}
	@Column(name = "APPTYPE")
	public String getAppType() {
		return appType;
	}
	public void setAppType(String appType) {
		this.appType = appType;
	}

}
